/**
 * For the license, see main.cpp file
 */

#ifndef SETTINGS_EXPERT_H
#define SETTINGS_EXPERT_H

#include <QApplication>
#include <QSettings>
#include <QString>
#include <QByteArray>
#include <QVariant>
#include <QDebug>
#include <QTime>

class SettingsExpert
{
		
private:
	QSettings *settings;
	
public:
	SettingsExpert();
	void registerQStringSetting(QString key, QString value);
	void registerQByteArraySetting(QString key, QByteArray value, bool base64 = false);
	void registerQuint32Setting(QString key, quint32 value);
	void registerBoolSetting(QString key, bool value);
	QVariant getSetting(QString key);
	void restoreDefaultSettings(bool updateGui = true);
	void forceSync();
};

#endif //SETTINGS_EXPERT_H
